<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="assignRoleClick()">分配角色</button>
                <button class="layui-btn" ng-click="saveOrUpdateClick()">保存</button>
                <button class="layui-btn" ui-sref="user">关闭</button>
            </ul>
            <div class="wms-wbm-fun-right">
            </div>
        </div>
        <div class="otherForm">
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>用户账号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="user.username"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>密码</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="user.password"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>所属仓库</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.warehouse">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.whName"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="warehouse in (dropDownList.warehouse | filter: $select.search)">
                                    <span ng-bind="warehouse.whName"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>姓名</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="user.name"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>性别</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.sex">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="sex in (dropDownList.sex | filter: $select.search)">
                                    <span ng-bind="sex.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>岗位</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="user.job"/>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>E-mail</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="user.email"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>手机</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="user.mobile"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>状态</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.status">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="status in (dropDownList.status | filter: $select.search)">
                                    <span ng-bind="status.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem">
                        <div>用户类型</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.type">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="status in (dropDownList.type | filter: $select.search)">
                                    <span ng-bind="status.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem">
                    </div>
                </li>
            </ul>
        </div>
        <div class="layui-form scrollTable">
            <div style="height: 30px;width: auto;">用户角色</div>
            <table class="layui-table wms_wbm_main_table serial minScreen asnTable" >
                <tbody>
                    <tr>
                        <th>序号</th>
                        <th>角色代码</th>
                        <th>角色名称</th>
                        <th>操作</th>
                    </tr>
                    <tr ng-repeat="role in roleList" ng-click="Tools.initTableClick($event)">
                        <td ng-bind="$index + 1"></td>
                        <td ng-bind="role.code"></td>
                        <td ng-bind="role.name"></td>
                        <td><a href="javascript:void(0)" ng-click="deleteThisRoleClick($index)">删除</a></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>